package com.yupi.springbootinit.model.vo.production;

import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Author:WwW
 * @Description
 * @Date: 2025/10/23  09:44
 */
@Data
public class ProductionProgressVO {
    // 清机信息
    private CleaningInfo cleaning;

    // 当前工序
    private CurrentStepInfo currentStep;

    // 进度统计
    private ProgressStats progress;

    @Data
    public static class CleaningInfo {
        private String status;           // NONE / IN_PROGRESS / COMPLETED
        private LocalDateTime startTime;
        private LocalDateTime endTime;
        private String operatorName;
    }

    @Data
    public static class CurrentStepInfo {
        private Integer stepNo;
        private String stepName;
        private String status;

        private String statusDisplay;
        private String statusDescription;
        private Boolean needsQualityCheck;
        private Boolean isProductionCompleted;

        private LocalDateTime planStart;
        private LocalDateTime planEnd;
    }

    @Data
    public static class ProgressStats {
        private Integer totalSteps;
        private Integer completedSteps;
        private Integer progressPercent;
    }
}
